package com.kingmed.kmss.common.annotation;

import com.kingmed.kmss.common.enums.base.FieldType;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface CheckField {

    String value() default "";

    //类型映射
    FieldType fieldType();

    String msg() default "";
}
